from public.action import *
from public.business import *
from public.testData import *
from public.tools import *
import time

testCase ="DBshop016_商品管理管理分类前台侧边设置"
x="网站很好看"
firefox=openBrowser(urlAdmin)     #调用函数打开后台网址
DBshopLoginAdmin(firefox)         #调用函数登录
DBshopEnterMenu3(firefox,"商品管理","管理分类","前台侧边设置")
firefox.find_element_by_xpath('//table/tbody/tr[1]/td[4]/a[2]').click()
time.sleep(2)
firefox.switch_to.alert.accept()
time.sleep(2)
x = firefox.find_element_by_xpath('//table/tbody/tr/td').text
y = "暂无显示设置"

if x==y:
    writeLog("%s 测试通过" % testCase)
else:
    writeLog("%s 测试不通过" % testCase)
    getPhoto(firefox)
firefox.quit()
